<?php
namespace app\api\controller;
use app\api\middleware\AuthMiddleware;
use app\BaseController;
use think\Request;

class Index extends BaseController
{
    /**获取首页数据
     * @return \think\response\Json
     * @throws \think\db\exception\DbException
     */
    public function index(){
        $bool = AuthMiddleware::rend();
        var_dump($bool);
    }
    public function sign_in(Request $request){
        $data = $request->param();
        return json(['code'=>200,'msg'=>'获取成功','data'=>[]]);
    }
}